package com.ruoyi.user.model;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 商品管理对象 cms_goods
 *
 * @author houyong
 * @date 2025-11-20
 */
@Schema(description = "商品管理对象")
public class CmsGoods extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 商品ID
     */
    @Schema(description = "商品ID")
    private Long id;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    @Schema(description = "商品名称")
    private String name;

    /**
     * logo
     */
    @Excel(name = "logo")
    @Schema(description = "商品logo")
    private String logo;

    /**
     * 简介
     */
    @Schema(description = "商品简介")
    private String introduction;

    /**
     * 划线价
     */
    @Excel(name = "划线价")
    @Schema(description = "划线价")
    private BigDecimal crossedPrice;

    /**
     * 平台价
     */
    @Excel(name = "平台价")
    @Schema(description = "平台价")
    private BigDecimal platformPrice;

    /**
     * 运营状态，online:已上线，offline:已下线，prepare：待上线
     */
    @Excel(name = "运营状态，online:已上线，offline:已下线，prepare：待上线")
    @Schema(description = "运营状态，online:已上线，offline:已下线，prepare：待上线")
    private String status;

    /**
     * 销量
     */
    @Excel(name = "销量")
    @Schema(description = "销量")
    private Long saleQuantity;

    /**
     * 标签，最多三个，以逗号隔开，商品检索时用
     */
    @Excel(name = "标签，最多三个，以逗号隔开，商品检索时用")
    @Schema(description = "标签，最多三个，以逗号隔开，商品检索时用")
    private String label;

    /**
     * 库存
     */
    @Excel(name = "库存")
    @Schema(description = "库存")
    private Long stock;

    /**
     * 删除标识，0：未删除1：已删除
     */
    @Schema(description = "删除标识，0：未删除1：已删除")
    private Long delFlag;

    /**
     * 创建者
     */
    @Excel(name = "创建者")
    @Schema(description = "创建者")
    private String createrBy;

    /**
     * 排序权重，从大到小排序
     */
    @Excel(name = "排序权重，从大到小排序")
    @Schema(description = "排序权重，从大到小排序")
    private Long weight;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public BigDecimal getCrossedPrice() {
        return crossedPrice;
    }

    public void setCrossedPrice(BigDecimal crossedPrice) {
        this.crossedPrice = crossedPrice;
    }

    public BigDecimal getPlatformPrice() {
        return platformPrice;
    }

    public void setPlatformPrice(BigDecimal platformPrice) {
        this.platformPrice = platformPrice;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getSaleQuantity() {
        return saleQuantity;
    }

    public void setSaleQuantity(Long saleQuantity) {
        this.saleQuantity = saleQuantity;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public Long getStock() {
        return stock;
    }

    public void setStock(Long stock) {
        this.stock = stock;
    }

    public Long getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Long delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreaterBy() {
        return createrBy;
    }

    public void setCreaterBy(String createrBy) {
        this.createrBy = createrBy;
    }

    public Long getWeight() {
        return weight;
    }

    public void setWeight(Long weight) {
        this.weight = weight;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("logo", getLogo())
                .append("introduction", getIntroduction())
                .append("crossedPrice", getCrossedPrice())
                .append("platformPrice", getPlatformPrice())
                .append("status", getStatus())
                .append("saleQuantity", getSaleQuantity())
                .append("label", getLabel())
                .append("stock", getStock())
                .append("delFlag", getDelFlag())
                .append("createrBy", getCreaterBy())
                .append("updateBy", getUpdateBy())
                .append("weight", getWeight())
                .append("updateTime", getUpdateTime())
                .append("createTime", getCreateTime())
                .toString();
    }
}